<template>
	<view class="my">
		<!-- 顶部个人信息 -->
		<view class="top">
				<!-- :style="{backgroundImage: `url(${'https://qh.qlogo.cn/g?b=oidb&ek=AQHZMse1icvWXVMARB0T2Y5LU5nwtwRFa4o87Y4fxhhPXk9FibeBapicUZZQ9n66vvmdZoQW92RznoACjiciaJyZSsAQEnibHpsSictz5uMibq3mWRUJVup96us&s=100'})`}" -->
			<img
			src="https://qh.qlogo.cn/g?b=oidb&ek=AQHZMse1icvWXVMARB0T2Y5LU5nwtwRFa4o87Y4fxhhPXk9FibeBapicUZZQ9n66vvmdZoQW92RznoACjiciaJyZSsAQEnibHpsSictz5uMibq3mWRUJVup96us&s=100"
				class="avatar"
			>
			<text class="nick">大森</text>
			<view>修改</view>
		</view>
		
		<!-- 小模块 -->
		<view class="card-modle">
			<view
				v-for="(item, index) in cardList"
				:key="index"
				class="card"
			>
				<text></text>
				<text class="card-name">{{ item.title }}</text>
			</view>
		</view>
		
		<!-- cell模块 -->
		<view
			v-for="(item,index) in cellList"
			:key="index"
			class="cell-item"
		>
			<text class="title">{{ item.title }}</text>
			<text>></text>
		</view>
		
		<!-- 广告banner -->
		<view
			:style="{backgroundImage: `url(${'https://vfiles.gtimg.cn/pub/qq_sports_score.weekly_lottery_test/b3718717_DYxselXJC2I.png'})`}"
			class="ad-banner"
		>
		</view>
	</view>
</template>

<script>
	export default {
		data() {
			return {
				cellList: [
					{
						title: '我的钱包',
					},
					{
						title: '会员卡',
					},
					{
						title: '收货地址',
					},
					{
						title: '消息通知',
					},
					{
						title: '意见反馈',
					},
					{
						title: '客服',
					},
					{
						title: '设置',
					}
				],
				cardList: [
					{
						title: '优惠券',
					},
					{
						title: '全部订单',
					},
					{
						title: '评价',
					},
					{
						title: '点赞',
					}
				]
			}
		},
		methods: {
			
		}
	}
</script>

<style lang="less">
.my {
	.top {
		height: 140rpx;
		width: 100vw;
		box-sizing: border-box;
		padding: 0 40rpx;
		background-color: rgba(189, 255, 49, 0.50);
		// background: linear-gradient(180deg, rgba(189, 255, 49, 0.50) 38.77%, rgba(255, 243, 134, 0.14) 112.17%), #FFF;
		display: flex;
		flex-direction: row;
		align-items: center;
		// justify-content: space-between;
		.avatar {
			width: 100rpx;
			height: 100rpx;
			background-repeat: no-repeat;
			background-size: 100% 100%;
			border-radius: 50%;
		}
		.nick {
			flex: 1;
			margin-left: 20rpx;
		}
	}
	
	.card-modle {
		width: 100vw;
		display: flex;
		border-bottom-left-radius: 40rpx;
		border-bottom-right-radius: 40rpx;
		overflow: hidden;
		.card {
			width: 25vw;
			height: 25vw;
			display: flex;
			flex-direction: column;
			justify-content: center;
			align-items: center;
			background: linear-gradient(180deg, rgba(189, 255, 49, 0.50) 38.77%, rgba(255, 243, 134, 0.14) 112.17%), #FFF;
		}
	}
	
	.cell-item {
		width: calc(100vw - 80rpx);
		display: flex;
		align-items: center;
		padding: 30rpx 0;
		margin: 0 auto;
		background: linear-gradient(180deg, rgba(255, 255, 255, 0.00) -23.82%, #FFF 10.36%, #FFF 100%);
		.title {
			flex: 1;
		}
	}
	
	.ad-banner {
		width: calc(100vw - 80rpx);
		height: 200rpx;
		background-color: antiquewhite;
		border-radius: 40rpx;
		margin: 0 auto;
		margin-top: 30rpx;
		background-repeat: no-repeat;
		background-size: 100% 100%;
	}
}
</style>
